/**
 * Created by Administrator on 2018-08-22.
 * 任务调度及监控
 */
define(function (require,exports,module) {
    var sTpl = require("./missionControl.html");
    require("./missionControl.css");
    require("../../lib/fullcalendar/moment.min.js");
    var VueComponent = Vue.extend({
        template: sTpl,
        data:function () {
            var date = moment('2018-08-16').format("YYYY-MM-DD");
            return {
                today:date,
                mcData:[],
            }
        },
        methods: {
            findFlightPlan:function () {
                var $this = this;
                axios.get(basepath+"/api/flightPlane/queryScheded?startDate="+this.today+"&scheduled=true"
                    +"&endDate="+this.today
                ).then(function (response) {
                    $this.mcData=response.data;
                });
            }
        },
        watch:{
        },
        computed:{

        },
        created:function () {
            this.findFlightPlan();

        },
        activated:function () {
            messages.$emit('change','任务调度及监控');
        }
    })
    module.exports=VueComponent;
    module.exports.reDefine=function (val) {
        module.exports.type=val;
        return module.exports;
    }

})


